package com.dj.msgtable.dao;

import com.dj.msgtable.entity.Article;
import com.dj.msgtable.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ArticleMapper {

    //添加文章
    @Insert("insert into article (title,mainbody,time,date) value (#{title},#{mainbody},#{time},#{date})")
    public boolean addArticle(Article article);


    //查找文章
    @Select("select * from article")
    public List<Article> selectArticle();


}
